from rest_framework import serializers

from app.models import FMUser
from app.models.feedback import FeedBack


class FeedBackSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(queryset=FMUser.objects.all(), required=False)

    class Meta:
        model = FeedBack
        fields = ['user', 'contact', 'content']
